package cn.wawi.entity.data;

import java.util.Date;
import org.apache.commons.lang3.StringEscapeUtils;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

/*
 * 招聘信息表
 */
public class Recruitment{

	@JsonProperty("id")
	private Long recruitId;  
	private String recruitName;    
	private String recruitDes; 
	private String workAddress;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date releaseTime=new Date();
	private Post post;
	private Enterprise enterprise;
	private Integer status=1;
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Post getPost() {
		return post;
	}
	public void setPost(Post post) {
		this.post = post;
	}
	public Enterprise getEnterprise() {
		return enterprise;
	}
	public void setEnterprise(Enterprise enterprise) {
		this.enterprise = enterprise;
	}
	public Long getRecruitId() {
		return recruitId;
	}
	public void setId(Long id) {
		this.recruitId = id;
	}
	public String getRecruitName() {
		return recruitName;
	}
	public void setRecruitName(String recruitName) {
		this.recruitName = recruitName;
	}
	public String getRecruitDes() {
		return recruitDes;
	}
	public void setRecruitDes(String recruitDes) {
		recruitDes=StringEscapeUtils.unescapeHtml4(recruitDes);
		this.recruitDes = recruitDes;
	}
	public String getWorkAddress() {
		return workAddress;
	}
	public void setWorkAddress(String workAddress) {
		this.workAddress = workAddress;
	}
	public Date getReleaseTime() {
		return releaseTime;
	}
	public void setReleaseTime(Date releaseTime) {
		this.releaseTime = releaseTime;
	}
	public void setRecruitId(Long recruitId) {
		this.recruitId = recruitId;
	}
}
